import { ApiModulesRoutes } from '@/consts'
import request from '@/utils/request'


/**
 * 查询设备列表（分页）
 * @param {'CAMERA','ROBOT'} data.deviceTypeEnum
 * @param {'DISABLE','ENABLE'}  data.enableStateEnum
 * @param {'ALG','COURSE','DEFAULT','DEVICE','GATEWAY','REGION','SECURITY','TRAIL','USER'}  data.excludeBusinessTypeEnum
 * @param {String}  data.gatewayId
 * @param {String}  data.keyword
 * @param {'DIRECT','FIVE_G','GATEWAY'}  data.netTypeEnum
 * @param {Boolean}  data.alg
 * @param {Boolean}  data.location
 * @param {Boolean}  data.online
 * @param {Number}  data.pageNo
 * @param {Number}  data.pageSize
 * @param {String}  data.productId
 * @param {String}  data.regionId
 */

export function apiFindDevicePageByParam(data) {
  return request({
    url: `${ApiModulesRoutes.IOT}/device/findDevicePageByParamNew`,
    method: 'POST',
    data
  })
}
